package com.ExaminStudy;

public class TercherTest {
    public static void main(String[] args) {
        Tercher tercher=new Tercher();
        tercher.show();
        tercher.ShowMoney();
        tercher.ShowAge();
    }

}
class Tercher {
    String name;
    String sex;
    int age;
    String job;
    int money;
    public Tercher(String name, String sex, int age){
       this.name=name;
       this.sex=sex;
       this.age=age;
    }
    public Tercher(){
        this("刘德华","男",40);
        job="老师";
        money=12000;
    }
    public void show(){
        System.out.println(name);
        System.out.println(job);
        System.out.println(age);
    }
    public void ShowMoney(){
        System.out.println(job+"的平均工资是"+money);

    }
    public void ShowAge(){
        System.out.println(job+"的平均年龄是"+age);
    }

}
